/**
 * Created by 春旺 on 2017/3/24.
 */
//**********************************************************************************************************************
// Tunes.java         Java Foundations
//
// Demonstrates the use of an array of objections.
//**********************************************************************************************************************

public class Tunes
{
    //------------------------------------------------------------------------------------------------------------------
    //  Creates a CDCollection object and adds some CDs to it. Prints
    //  reports on the status of the collection.
    //------------------------------------------------------------------------------------------------------------------
    public static void main(String[] args)
    {
        CDCollection music = new CDCollection();

        music.addCD ("storm Front","Billy Joel", 14.95, 10);
        music.addCD ("Come on over", "Shania Twain", 14.95, 16);

        music.addCD ("Soundtrack", "Les Miserables", 17.95, 33);
        music.addCD ("Graceland", "Paul Simon",13.90,13);
        System.out.println(music);
    }
}
